from typing import List

from fastapi import APIRouter,Depends
from core import deps

from scheams import ProjectStatistics,Response200

admin = APIRouter(tags=["后台管理"],dependencies=[Depends(deps.get_current_user)])


@admin.get("/getStatistics")
async def getStatistics():
    list = []
    
    list.append(ProjectStatistics(title="title1",unit="unit1",value="123",subTitle="subTitle1",subValue="24%"))
    list.append(ProjectStatistics(title="title2",unit="unit2",value="45",subTitle="subTitle2",subValue="45"))
    list.append(ProjectStatistics(title="title3",unit="unit3",value="78",subTitle="subTitle3",subValue="788"))
    list.append(ProjectStatistics(title="title4",unit="unit4",value="89",subTitle="subTitle4",subValue="56"))

    return Response200(data=list)